package autosession

import (
	"context"
	"net/http"
)

// 这里定义 sessionId 的读取和返回方式
type Inspector interface {
	Read(ctx context.Context, req *http.Request, name string) (sessionId string, err error)
	Write(ctx context.Context, name, sessionId string, options *Options, writter WritterFunc) (string, error)
	SignId(ctx context.Context, sessionId string, options *Options) (string, error)
}
